Integrand size = 39, antiderivative size = 59 \[ \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))}{(a+i a \tan (e+f x))^3} \, dx=\frac {(A+i B) c}{3 a^3 f (i-\tan (e+f x))^3}-\frac {B c}{2 a^3 f (i-\tan (e+f x))^2} \]
[Out]
Time = 0.10 (sec) , antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.051, Rules used = {3669, 45} \[ \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))}{(a+i a \tan (e+f x))^3} \, dx=\frac {c (A+i B)}{3 a^3 f (-\tan (e+f x)+i)^3}-\frac {B c}{2 a^3 f (-\tan (e+f x)+i)^2} \]
[In]
[Out]
Rule 45
Rule 3669
Rubi steps \begin{align*} \text {integral}& = \frac {(a c) \text {Subst}\left (\int \frac {A+B x}{(a+i a x)^4} \, dx,x,\tan (e+f x)\right )}{f} \\ & = \frac {(a c) \text {Subst}\left (\int \left (\frac {A+i B}{a^4 (-i+x)^4}+\frac {B}{a^4 (-i+x)^3}\right ) \, dx,x,\tan (e+f x)\right )}{f} \\ & = \frac {(A+i B) c}{3 a^3 f (i-\tan (e+f x))^3}-\frac {B c}{2 a^3 f (i-\tan (e+f x))^2} \\ \end{align*}
Time = 5.14 (sec) , antiderivative size = 41, normalized size of antiderivative = 0.69 \[ \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))}{(a+i a \tan (e+f x))^3} \, dx=\frac {c (-2 A+i B-3 B \tan (e+f x))}{6 a^3 f (-i+\tan (e+f x))^3} \]
[In]
[Out]
Time = 0.14 (sec) , antiderivative size = 43, normalized size of antiderivative = 0.73
method | result | size |
derivativedivides | \(\frac {c \left (-\frac {i B +A}{3 \left (-i+\tan \left (f x +e \right )\right )^{3}}-\frac {B}{2 \left (-i+\tan \left (f x +e \right )\right )^{2}}\right )}{f \,a^{3}}\) | \(43\) |
default | \(\frac {c \left (-\frac {i B +A}{3 \left (-i+\tan \left (f x +e \right )\right )^{3}}-\frac {B}{2 \left (-i+\tan \left (f x +e \right )\right )^{2}}\right )}{f \,a^{3}}\) | \(43\) |
risch | \(\frac {c \,{\mathrm e}^{-2 i \left (f x +e \right )} B}{8 a^{3} f}+\frac {i c \,{\mathrm e}^{-2 i \left (f x +e \right )} A}{8 a^{3} f}+\frac {i c A \,{\mathrm e}^{-4 i \left (f x +e \right )}}{8 a^{3} f}-\frac {c \,{\mathrm e}^{-6 i \left (f x +e \right )} B}{24 a^{3} f}+\frac {i c \,{\mathrm e}^{-6 i \left (f x +e \right )} A}{24 a^{3} f}\) | \(100\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 60, normalized size of antiderivative = 1.02 \[ \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))}{(a+i a \tan (e+f x))^3} \, dx=-\frac {{\left (3 \, {\left (-i \, A - B\right )} c e^{\left (4 i \, f x + 4 i \, e\right )} - 3 i \, A c e^{\left (2 i \, f x + 2 i \, e\right )} - {\left (i \, A - B\right )} c\right )} e^{\left (-6 i \, f x - 6 i \, e\right )}}{24 \, a^{3} f} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 206 vs. \(2 (44) = 88\).
Time = 0.27 (sec) , antiderivative size = 206, normalized size of antiderivative = 3.49 \[ \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))}{(a+i a \tan (e+f x))^3} \, dx=\begin {cases} \frac {\left (192 i A a^{6} c f^{2} e^{8 i e} e^{- 4 i f x} + \left (64 i A a^{6} c f^{2} e^{6 i e} - 64 B a^{6} c f^{2} e^{6 i e}\right ) e^{- 6 i f x} + \left (192 i A a^{6} c f^{2} e^{10 i e} + 192 B a^{6} c f^{2} e^{10 i e}\right ) e^{- 2 i f x}\right ) e^{- 12 i e}}{1536 a^{9} f^{3}} & \text {for}\: a^{9} f^{3} e^{12 i e} \neq 0 \\\frac {x \left (A c e^{4 i e} + 2 A c e^{2 i e} + A c - i B c e^{4 i e} + i B c\right ) e^{- 6 i e}}{4 a^{3}} & \text {otherwise} \end {cases} \]
[In]
[Out]
Exception generated. \[ \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))}{(a+i a \tan (e+f x))^3} \, dx=\text {Exception raised: RuntimeError} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 140 vs. \(2 (45) = 90\).
Time = 0.64 (sec) , antiderivative size = 140, normalized size of antiderivative = 2.37 \[ \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))}{(a+i a \tan (e+f x))^3} \, dx=-\frac {2 \, {\left (3 \, A c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 6 i \, A c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 3 \, B c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 10 \, A c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 2 i \, B c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 6 i \, A c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 3 \, B c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 3 \, A c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}}{3 \, a^{3} f {\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - i\right )}^{6}} \]
[In]
[Out]
Time = 8.47 (sec) , antiderivative size = 62, normalized size of antiderivative = 1.05 \[ \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))}{(a+i a \tan (e+f x))^3} \, dx=\frac {\frac {c\,\left (B+A\,2{}\mathrm {i}\right )}{6}+\frac {B\,c\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}}{2}}{a^3\,f\,\left (-{\mathrm {tan}\left (e+f\,x\right )}^3\,1{}\mathrm {i}-3\,{\mathrm {tan}\left (e+f\,x\right )}^2+\mathrm {tan}\left (e+f\,x\right )\,3{}\mathrm {i}+1\right )} \]
[In]
[Out]